public class Bookshelf {
    public static void main(String args[]) {
        Book bookone;
        bookone = new Book( "Java2实用教程","耿祥义","清华大学出版社","2017");
        System.out.println("Here is a BookOne:\n"+bookone);
        Book booktwo = new Book("Java2实用教程","耿祥义","清华大学出版社","2017");
        System.out.println("Here is a BookTwo:\n"+booktwo);
        Book bookthree = new Book("计算机网络","谢希仁","电子工业出版社","2017.1");
        System.out.println("Here is a BookThree:\n"+bookthree);
        Book bookfour = new Book("深度学习实战","刘焱","机械工业出版社","2017");
        System.out.println("Here is a BookFour:\n"+bookfour);
        if(bookone.equals(booktwo)){
            System.out.println("bookone equals booktwo");
        }
        System.out.println("更改boonone信息");
        bookone.setAuthor("万宗杰");
        System.out.println("Here is a BookOne:\n"+bookone);
    }
}
